home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / media / pov / hall-of- / plntscap.txt < prev    next >
Encoding:
Text File  |  1994-10-02  |  2.5 KB  |  49 lines

  1. PLNTSCAP.GIF is an example of using post-processing on raytraced
  2. images to generate realistic starfields.  Povray was used to generate
  3. the large ringed planet and grey foreground moonscape.  The stars
  4. were generated by using Fractint's starfield option on a "plasma"
  5. fractal.  The purple nebula was generated by Corel's PhotoPaint.
  6. The images were combined using PicLab.
  7.  
  8. In article <CtBrM6.5Dx@mishima.mn.org> tomg@mishima.mn.org writes:
  9. >What's the best way to generate starfields in Povray?  Just map
  10. >a texture on a black sky?
  11.  
  12. I've been wrestling with this problem for some time now - here's what I've
  13. come up with so far. 
  14.  
  15. The problem with generating starfields in Povray is that stars are more or less
  16. point sources of light.  So in order to make a realistic looking star field,
  17. each star should consist of a single pixel.  (Ok, this is a subjective
  18. opinion.  Personally, I think stars look better as single pixels.  Your
  19. mileage may vary.)  This implies a resolution dependent texture function -
  20. something that Povray does not support (and probably shouldn't.)  The thing to
  21. do, then, is to generate the star field outside of Povray and combine the
  22. Povray image and the star field image in a post-processing step.  This can
  23. easily be accomplished with PicLab, a freely available image processing
  24. program (try one of the many raytracing ftp sites to find this.)
  25.  
  26. The trick is to render your scene twice, once with a regular
  27. black background (where the stars will eventually go), and once with an
  28. all-white background and all of the foreground objects' textures set to black.
  29. The second image can be used as a mask to "cut out" parts of the star field
  30. image you don't want, allowing the modified star field to be added pixel by
  31. pixel to the original black-background rendered image.  Complicated, yes, but
  32. the results look really good.
  33.  
  34. I will try and upload an example of this technique to ftp.uwa.edu.au.  The
  35. filename will be PLNTSCAP.GIF or something similar.
  36.  
  37. Of course, you can always use image maps or try to kludge a texture map into
  38. looking like a bunch of stars.  I've had reasonable results with both
  39. techniques, but find that using the above method yields more consistently
  40. better images.
  41.  
  42. If you're trying to do an animation with star fields, good luck.  Short of
  43. patching Povray to include a star field type texture (which has been done in
  44. the past, at least for DKBTrace) I can't think of any method which will
  45. look very good.
  46.  
  47. Barry Ferg | bdf@dsi.bc.ca | Opinions expressed are my own
  48.  
  49.